<!--Copyright (C) Kherty.  All rights reserved.-->
<UserControl x:Class="OpenLS.Spreadsheet.UI.StyleRecordControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI"
             xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources"
             MinWidth="400" MinHeight="400"
             
>
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <Internals:BordersFormatterResources></Internals:BordersFormatterResources>
                <Internals:ProtectionFormatterResources></Internals:ProtectionFormatterResources>
                <Internals:FontFormatterResources></Internals:FontFormatterResources>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Border BorderBrush="Black" BorderThickness="1" Background="Beige" CornerRadius="18">
    <DockPanel>
        <DockPanel LastChildFill="False" DockPanel.Dock="Bottom">
            <Button DockPanel.Dock="Right" IsCancel="True" Content="{x:Static Internals1:UIStringTable.Cancel}"></Button>
            <Button DockPanel.Dock="Right" IsDefault="True" Content="{x:Static Internals1:UIStringTable.OK}"></Button>
        </DockPanel>
        <TabControl Margin="10">
            <TabItem  Header="{x:Static Resources:UIStringTable.Number}" DataContext="{Binding FormatFormatter}">
                <ssui:FormatControl/>
            </TabItem>
            <TabItem  Header="{x:Static Resources:UIStringTable.Alignment}" Name="AlignmentTabItem" DataContext="{Binding AlignmentFormatter}">
                <ssui:AlignmentControl/>
            </TabItem>
            <TabItem  Header="{x:Static Internals1:UIStringTable.Font}" Name="FontTabItem"  >
               <!-- <ssui:FontControl Font="{Binding Font}"/> -->
                <ContentControl Content="{Binding FontFormatter}"></ContentControl>
            </TabItem>
            <TabItem  Header="{x:Static Resources:UIStringTable.Borders}" Name="BordersTabItem" Content="{Binding  BordersFormatter}">
            <!--<TabItem Header="Border"> -->
             <!--   <ssui:BorderControl/> -->
            </TabItem>
            <TabItem  Header="{x:Static Resources:UIStringTable.Fill}" DataContext="{Binding BackgroundFormatter}">
                <ContentControl Content="{Binding}" ContentTemplate="{x:Static ssui:BackgroundFormatterResources.Template}"></ContentControl>
            </TabItem>
            <TabItem  Header="{x:Static Resources:UIStringTable.Protection}" >
                <ContentControl Content="{Binding ProtectionFormatter}"></ContentControl>
            </TabItem>
          <!--  <TabItem  Header="{x:Static Internals:UIStringTable.Protection}" DataContext="{Binding Record}">
                <Internals:ProtectionFormatterResources/>
            </TabItem> -->
        </TabControl>
    </DockPanel>
    </Border>
</UserControl>
